Ext.tree.YamTreeLoader=function(config){
	this.async=true;
	Ext.tree.YamTreeLoader.superclass.constructor.apply(this,arguments);
};
Ext.extend(Ext.tree.YamTreeLoader,Ext.tree.TreeLoader,{
	requestData:function(A,B){
		if(this.fireEvent("beforeload",this,A,B)!==false){
			this.transId=Ext.Ajax.request({
				method:this.requestMethod,
				url:this.dataUrl||this.url,
				success:this.handleResponse,
				failure:this.handleFailure,
				scope:this,
				argument:{callback:B,node:A},
				params:this.getParams(A),
				async:this.async
			});
		}else{
			if(typeof B=="function"){
				B();
			}
		}
	}
});